<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="aa" uri="http://ajaxanywhere.sourceforge.net/" %>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>航班调整保障情况记录</title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script src="<c:url value="/scripts/datetime.js"/>" language="javascript"></script>
<script src="<c:url value="/scripts/common.js"/>" language="javascript"></script>
<script src="<c:url value='/scripts/ajax/aa.js'/>"></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script type='text/javascript' src='dwr/interface/FlightAdjustFoodRemote.js'></script>
<script type='text/javascript' src='dwr/interface/FlightAdjustHotelRemote.js'></script>
<script type='text/javascript' src='dwr/interface/FlightAdjustCarRemote.js'></script>
<script type='text/javascript' src='dwr/interface/FlightAdjustSuperfluityRemote.js'></script>
<script type='text/javascript' src='dwr/interface/FlightAdjustProtectRemote.js'></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<script> 
	function saveHotel(){ 
	ajaxAnywhere.getZonesToReload = function() {
    return "newHotelZone";
	}
	 ajaxAnywhere.getAJAX('./abnormal.html?method=showProtect&flightInfoId=<c:out value="${param.flightInfoId}"/>&step=2&flightAdjustInfoId=<c:out value="${param.flightAdjustInfoId}"/>','newHotelZone')
     //ajaxAnywhere.submitAJAX(); 
	}
</script>
<script> 
	function saveSuperfluity(){ 
	ajaxAnywhere.getZonesToReload = function() {
    return "SuperfluityZone";
	}
	 ajaxAnywhere.getAJAX('./abnormal.html?method=showProtect&flightInfoId=<c:out value="${param.flightInfoId}"/>&flightAdjustInfoId=<c:out value="${param.flightAdjustInfoId}"/>','SuperfluityZone')
     //ajaxAnywhere.submitAJAX(); 
	}
</script>

<script>
	var bln = false;
	function changeDiv(eltName,img){ 
  		var el = document.getElementById(eltName);  
		bln = !bln; 
		if(bln){
			img.src="images/menu_ico.gif";
		}else{
			img.src="images/menu_ico_up.gif";			
		}
		display(eltName);

	}
	 
	function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";} 
	function $(s){return document.getElementById(s);}
 
</script>


<body leftmargin="0" topmargin="0">
<html:form action="abnormal" method="post">
<input type=hidden name=id value="<c:out value="${flightAdjustProtect.id}"/>"/>
<input type=hidden name=flightInfoId id="flightInfoId"  value='<c:out value="${param.flightInfoId}"/>'>
<input type=hidden name=flightAdjustInfoId id="flightAdjustInfoId" value='<c:out value="${flightAdjustInfo.id}"/>'>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle"> 航班调整保障情况记录</td>
  </tr>
  <tr id="messageShowTrId" style="display:none;">
	<td valign="top" class="black12">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td class="arror_bg_s">
	<span class="arror_title_s"> 
        保存信息成功!<br/>
     </span>
    </td>
    </tr>
    </table>
	</td>
	</tr>
	<logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
  <tr>
    <td height="30" class="home-search-space">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content"> 
                  <input name="button" type="button" class="home-inputBtn" value="保存" onClick="saveProtect()"
         		<logic:messagesNotPresent>
                   <c:if test="${'sendProtect' eq param.mode  || '2' eq param.type }">
				  	disabled
				  </c:if>	
       			</logic:messagesNotPresent>  
                  />
                  <input name="reset" type="reset" class="home-inputBtn" value="重置" 
         		<logic:messagesNotPresent>
                   <c:if test="${'sendProtect' eq param.mode  || '2' eq param.type }">
				  	disabled
				  </c:if>	
         		</logic:messagesNotPresent>				  
                  />  
		   <input name="Submit33" type="button" class="home-inputBtn"  value="保存并提交" onclick="send()" 
 		<logic:messagesNotPresent>		   
		  <c:if test="${'sendProtect' eq param.mode || '2' eq param.type}">
		  	disabled
		  </c:if>	
  		</logic:messagesNotPresent> 
  		   />
		</td>
              </tr>
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td width="20%" class="home-subtable-view-tdstyle-right">发布时间：</td>
                            <td class="home-subtable-view-tdstyle-left">2007-05-25 08:30</td>
                            <td width="20%" class="home-subtable-view-tdstyle-right">航班号：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustInfo.flightNum}"/></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">始发站：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustInfo.dan}"/></td>
                            <td class="home-subtable-view-tdstyle-right">终点站：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustInfo.aan}"/></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">计划起飞日期/时间：</td>
                            <td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightAdjustInfo.std}" pattern="yyyy-MM-dd HH:mm"/></td>
                            <td class="home-subtable-view-tdstyle-right">调整后起飞日期/时间：</td>
                            <td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightAdjustInfo.currentTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">调整类别：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:if test="${flightAdjustInfo.adjustType==1}">临时性调整</c:if>
                            <c:if test="${flightAdjustInfo.adjustType==2}">临时性取消</c:if>
                            <c:if test="${flightAdjustInfo.adjustType==3}">计划性调整</c:if>
                            <c:if test="${flightAdjustInfo.adjustType==4}">计划性取消</c:if></td>
                            <td class="home-subtable-view-tdstyle-right">调整原因：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustInfo.reasonInName}"/></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr>  
						<td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
	    	                  <td class="home-table-tool-content">餐食准备</td>
    	    	              <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('food1',this);changeDiv('food2',this);" style="cursor:hand"/></td>
                			</tr>
						</table>
						</td>                          
                    </tr>
                    <tr id="food1"> 
						<td valign="top" class="home-tab-line"> 
							<table width="100%" border="0" cellspacing="1" cellpadding="2" class="home-subtable-bgcolor">
								<tr height=25> 
									<td width="40%" class="home-table-tool-conten">餐食名称</td>
									<td width="20%" class="home-table-tool-conten">份数</td>
									<td width="20%" class="home-table-tool-conten">单价</td>
									<td width="20%" class="home-table-tool-conten">合计</td>
								</tr>
								<c:forEach var="results" items="${FOOD_FLIGHT_LIST}" varStatus="status">
								<tr height=25> 
									<td class="home-tab-content">&nbsp;<c:out value="${results.foodName}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.amount}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.price}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.total}"/></td>
								</tr>
								</c:forEach>
								<tr height=25> 
									<td class="home-tab-content"><b>总计：</b></td>
									<td class="home-tab-content"><b><c:out value="${totalAmount}"/></b></td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content"><b><c:out value="${totalMoney}"/>&nbsp;元</b></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr id="food2"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">交接地点：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustInstruction.foodAddress}"/></td>
                            <input type=hidden name=instruction value="<c:out value='${flightAdjustInstruction.instruction}'/>"/>
                          </tr>
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">配餐部备注：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustProtect.foodAcceptMemo}"/></td>
                          </tr>
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">接收人：</td>
                            <td width=20% class="home-subtable-view-tdstyle-left"><c:out value="${flightAdjustProtect.foodAcceptor}"/></td>
                            <td width=10% class="home-subtable-view-tdstyle-right">接收时间：</td>
                            <td width=20% class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightAdjustProtect.foodAcceptDate}" pattern="yyyy-MM-dd HH:mm"/></td>
                
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">备注：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><html:textarea property="foodMemo" styleClass="home-table-inputbox" cols="81" rows="2"><c:out value='${flightAdjustProtect.foodMemo}'/></html:textarea></td>
                          </tr>
                        </table></td>
                    </tr>

                     <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                    	<td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
		                      <td class="home-table-tool-content">住宿安排</td>
	    	                   <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('hotel1',this);changeDiv('hotel2',this);" style="cursor:hand"/></td>
	  						</tr>
  						</table>
  						</td>  	                   
                    </tr>
					<tr id="hotel1"> 
						<td valign="top" class="home-tab-line"> 
						<aa:zone name="newHotelZone">
							<table width="100%" border="0" cellspacing="1" cellpadding="1" class="home-subtable-bgcolor">
								<tr height=25> 
									<td width="15%" class="home-table-tool-conten">酒店名称</td>
									<td width="15%" class="home-table-tool-conten">地址</td>
									<td width="15%" class="home-table-tool-conten">联系电话</td>
									<td width="10%" class="home-table-tool-conten">房间数</td>
									<td width="10%" class="home-table-tool-conten">价格</td>
									<td width="10%" class="home-table-tool-conten">合计</td>
									<td width="20%" class="home-table-tool-conten">编辑</td>
								</tr>
								 <c:forEach var="results" items="${HOTEL_FLIGHT_LIST}" varStatus="status">
								<tr height=25> 
									<td class="home-tab-content">&nbsp;<c:out value="${results.name}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.address}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.phone}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.rooms}" default="0"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.price}" default="0"/>&nbsp;元</td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.total}" default="0"/>&nbsp;元</td>
									<td class="home-tab-content"><img src="images/update.gif" width="12" height="14" border=0
									<logic:messagesNotPresent>
									 <c:if test="${'sendProtect' ne param.mode  && '2' ne param.type }">
									 onclick="MM_openBrWindow('./flightAdjustHotel.html?method=edit&id=<c:out value='${results.id}'/>&hotelId=<c:out value='${results.hotelId}'/>&flightInfoId=<c:out value="${param.flightInfoId}"/>&step=2',null,'top=200,height=200,width=450,status=no,toolbar=no,menubar=no,location=no scrollbars=yes')" 
									  </c:if>	
		                         </logic:messagesNotPresent>
									 style="cursor: hand"/></td>
								</tr>
								</c:forEach>
                             <!--
								<tr height=25> 
									<td class="home-tab-content">总计</td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content">60</td>
									<td class="home-tab-content">30</td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content">40500元</td>
								</tr>
								-->
							</table>
							</aa:zone>
						</td>
					</tr>
					
					<tr id="hotel2"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">备注：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><html:textarea property="hotelMemo"  styleClass="home-table-inputbox" cols="81" rows="2"><c:out value='${flightAdjustProtect.hotelMemo}'/></html:textarea></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                    	<td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
	    	                  <td class="home-table-tool-content">正常赔偿</td>
    	    	              <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('abnAmends',this);" style="cursor:hand"/></td>
                			</tr>
						</table>
						</td>                			
                    </tr>
                    <tr id="abnAmends"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td nowrap class="home-subtable-view-tdstyle-right">补偿标准：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="standard" styleClass="home-table-inputbox"  size="10" value=""/></td>
                            <td nowrap class="home-subtable-view-tdstyle-right">现金补偿人数：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="cashCount" styleClass="home-table-inputbox"  size="10"/></td>
                            <td nowrap class="home-subtable-view-tdstyle-right">现金补偿金额：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="cashMoney" styleClass="home-table-inputbox"  size="10"/>&nbsp;元</td>
			</tr>
			<tr>
                            <td nowrap class="home-subtable-view-tdstyle-right">延误补偿书人数：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="bookCount" styleClass="home-table-inputbox"  size="10" /></td>
                            <td nowrap class="home-subtable-view-tdstyle-right">延误补偿书金额：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="bookMoney" styleClass="home-table-inputbox"  size="10"/>&nbsp;元</td>
                            <td nowrap class="home-subtable-view-tdstyle-right">总金额：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="totalMoney" styleClass="home-table-inputbox" size="10"/>&nbsp;元</td>
                          </tr>
                    	<tr> 
                       		<td class="home-subtable-view-tdstyle-right">备注：</td>
                       		<td colspan="10" class="home-subtable-view-tdstyle-left"><html:textarea property="compensationMemo" styleClass="home-table-inputbox" cols="81" rows="2"></html:textarea></td>
                    	</tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr>  
                      	<td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
	    	                  <td class="home-table-tool-content">额外赔偿</td>
    	    	              <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('addAmends1',this);changeDiv('addAmends2',this);" style="cursor:hand"/></td>
                			</tr>
						</table>
						</td>         
                    </tr>

					<tr id="addAmends1"> 
						<td valign="top" class="home-tab-line"> 
						<table width="100%" border="0" cellspacing="0" cellpadding="4">
							<tr> 
							  <td> 
								<input name="Submit2" type="button" class="home-inputBtn" value="新增" onclick="MM_openBrWindow('./flightAdjustSuperfluity.html?method=edit&flightInfoId=<c:out value='${param.flightInfoId}'/>',null,'top=200,height=300,width=550,status=no,toolbar=no,menubar=no,location=no')" 
							 	<logic:messagesNotPresent>		 
								 <c:if test="${'sendProtect' eq param.mode  || '2' eq param.type }">
								  	disabled
								 </c:if>	
								</logic:messagesNotPresent>		 
								> 
								<input name="button" type="button" class="home-inputBtn" value="删除" onclick="deleteSuperfluity()" 
								 <logic:messagesNotPresent>
								 <c:if test="${'sendProtect' eq param.mode  || '2' eq param.type }">
								  	disabled
								  </c:if>	
								 </logic:messagesNotPresent> 
								> 
							  </td>
							</tr>
							<tr> 
								<td class="home-tab-list-bg"> 
								<aa:zone name="SuperfluityZone">
									<table width="100%" border="0" cellspacing="1" cellpadding="2" class="home-subtable-bgcolor">
										<tr> 
											<td width="5%"  class="home-table-tool-conten"> <input type="checkbox" name="checkbox" value="checkbox" onclick="chooseAll(this)"/></td>
										<td width="10%" class="home-table-tool-conten">旅客姓名</td>
										<td width="10%" class="home-table-tool-conten">票号</td>
										<td width="10%" class="home-table-tool-conten">补偿申请金额</td>
										<td width="30%" class="home-table-tool-conten">其它要求</td>
										<td width="30%" class="home-table-tool-conten">申请原因</td>
										</tr>
										<c:forEach var="results" items="${SUPER_FLUITY_LIST}" varStatus="status">
										<tr> 
										<td class="home-tab-content"><input type="checkbox" name="selected_id" value="<c:out value='${results.id}'/>" /></td>
										<td class="home-tab-content"><c:out value='${results.name}'/></td>
										<td class="home-tab-content"><c:out value='${results.etNumber}'/></td>
										<td class="home-tab-content"><c:out value='${results.applyMoney}'/>元</td>
										<td class="home-tab-content"><c:out value='${results.suggestion}'/></td>
										<td class="home-tab-content"><c:out value='${results.memo}'/></td>
										</tr>
									</c:forEach>
									</table>
									</aa:zone>
								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr id="addAmends2"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">审核意见：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><html:textarea property="superfluityMemo" styleClass="home-table-inputbox" cols="81" rows="2"><c:out value='${flightAdjustProtect.superfluityMemo}'/></html:textarea></td>
                          </tr>
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">审核人：</td>
                            <td width=20% class="home-subtable-view-tdstyle-left"><html:text property="superfluityApproveMan" styleClass="home-table-inputbox" size="10"/></td>
                            <td width=10% class="home-subtable-view-tdstyle-right">审核时间：</td>
                            <td width=20% class="home-subtable-view-tdstyle-left"><html:text property="superfluityApproveDate" styleClass="home-table-inputbox" size="20" />&nbsp;<img src="images/date.gif" width="16" height="15"  onclick="fPopCalendar(superfluityApproveDate,superfluityApproveDate);return false" /></td>
                          </tr>
                        </table></td>
                    </tr>

					
                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                   
					

                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr>  
						<td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
	    	                  <td class="home-table-tool-content">其它特殊处理</td>
    	    	              <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('others',this);" style="cursor:hand"/></td>
                			</tr>
						</table>
						</td>                          
                    </tr>
                    <tr id="others"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                    	<tr> 
                       		<td class="home-subtable-view-tdstyle-right">特殊处理：</td>
                       		<td colspan="10" class="home-subtable-view-tdstyle-left"><html:textarea property="otherMemo" styleClass="home-table-inputbox" cols="81" rows="4"><c:out value='${flightAdjustProtect.otherMemo}'/></html:textarea></td>
                    	</tr>
                        </table></td>
                    </tr>

					
                  </table> 
                  
                </td>
              </tr>
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
<script>
function deleteSuperfluity(){
  var elements = document.getElementsByName("selected_id");
  var selected=new Array();
  for (var i=0;i <elements.length; i++){
     var e = elements[i];
     if(e.checked){
         var bb = e.value; 
		selected.push(bb);
	 }
  }if(0!=selected.length){
  if(confirm("确实要删除?")){
   FlightAdjustSuperfluityRemote.deleteSuperfluity(selected,deleteSuperfluityCallBack);
  }else return;
  }else{
			alert("<fmt:message key="common.delete.message"/>");
		}	
  }	
  function deleteSuperfluityCallBack(bln){
	if(bln){
	
	       ajaxAnywhere.getZonesToReload = function() {
    return "foodZone";
	}
	ajaxAnywhere.getAJAX('./flightAdjustSuperfluity.html?flightInfoId=<c:out value="${param.flightInfoId}"/>&flightAdjustInfoId=<c:out value="${param.flightAdjustInfoId}"/>','SuperfluityZone')
	}
}
function saveProtect(){
  document.forms[0].method="post";
  document.forms[0].action="abnormal.html?method=saveProtect&workItemId=<c:out value="${param.workItemId}"/>&processinstid=<c:out value="${param.processinstid}"/>&appId=<c:out value="${param.appId}"/>&flightInfoId=<c:out value="${param.flightInfoId}"/>&flightAdjustInfoId=<c:out value="${param.flightAdjustInfoId}"/>";
  document.forms[0].submit();
} 
function cancel(){
 document.forms[0].method="post";
  document.forms[0].action="abnormal.html?method=showProtect&flightInfoId=<c:out value="${param.flightInfoId}"/>&flightAdjustInfoId=<c:out value="${param.flightAdjustInfoId}"/>";
  document.forms[0].submit();
}


//add by kellen
function send(){
	document.forms[0].action="abnormal.html?method=saveProtect&mode=sendProtect&appId=<c:out value="${param.appId}"/>&workItemId=<c:out value="${param.workItemId}"/>&processinstid=<c:out value="${param.processinstid}"/>&protectId=<c:out value="${param.protectId}"/>";
	document.forms[0].submit();
}
//保存信息处理 add by kellen
if("1"=='<c:out value="${flag}"/>'){
	//alert("保存信息成功!");
	var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="";
	//window.location=window.location;  
}else if("-1"=='<c:out value="${flag}"/>'){
	alert("保存信息失败!");
	 
}else if("2" ==  '<c:out value="${flag}"/>'){
	//window.location=window.location;  
}
</script>


</html>
